// lowcode-service-import-api
import {fetch<%= variableName.slice(0, 1).toUpperCase() + variableName.slice(1) %>} from './api';
// lowcode-service-method
async get<%= variableName.slice(0, 1).toUpperCase() + variableName.slice(1) %>() {
	const res = await fetch<%= variableName.slice(0, 1).toUpperCase() + variableName.slice(1) %>()
	this.model.<%= variableName %>.value = res<%- result %>.map((s) => {
		return {
	...s,
	<% columns.map((item, index) => { _%>
		<%= item.key || `column${index+1}` %>: s.<%= item.key || `column${index+1}` %>,
	<% }) _%>
	apiResult: s
		};
	});
	<% if(pagination.show) { _%>
	this.model.<%= variableName %>Pagination.total = res.<%- pagination.total %>;
	<% } _%>
}
